from flask import Flask,render_template
from controller import login,itransaction,excelliushui

app = Flask(__name__)
#加载蓝图对象
app.register_blueprint(login, url_prefix='/login')
app.register_blueprint(itransaction, url_prefix='/transaction')
app.register_blueprint(excelliushui, url_prefix='/excel')


@app.route('/')
def hello_world():
    return render_template('index.html')
@app.route('/iregex/<fname>')
def regex(fname):
    print(fname)
    return 'fname:%s'%fname


if __name__ == '__main__':
    print(app.url_map)
    app.run(debug=True)
